package ComputerWork;

public abstract class Disk {
	private String name;
	private double volume;
	private double price;
	
	public Disk(String name, double volume, double price) {
		this.name = name;
		this.volume = volume;
		this.price = price;
	}

	public String getName() {
		return name;
	}
	
	public double getVolume() {
		return volume;
	}
	
	public double getPrice() {
		return price;
	}
	
	public abstract void work();
	
	public void digital() {
		System.out.println(name + ' ' + volume + ' ' + price);
	}
}
